<div role="tabpanel" class="tab-pane config-section" id="settings">
	<form method="POST" autocomplete="off" class="w-100">
		<div class="form-group">
			<label>
				挑战可见性<br>
				<small class="form-text text-muted">
					用户是否必须登录才能查看挑战
				</small>
			</label>
			<select class="form-control custom-select" name="challenge_visibility">
				<option value="public" {% if challenge_visibility == 'public' %}selected{% endif %}>
					公开
				</option>
				<option value="private" {% if challenge_visibility == 'private' %}selected{% endif %}>
					私有
				</option>
				<option value="admins" {% if challenge_visibility == 'admins' %}selected{% endif %}>
					仅管理员
				</option>
			</select>
		</div>

		<div class="form-group">
			<label>
				分数可见性<br>
				<small class="form-text text-muted">
					控制分数是向所有人展示、登录用户展示、向所有非管理员隐藏还是仅管理员展示
				</small>
			</label>
			<select class="form-control custom-select" name="score_visibility">
				<option value="public" {% if score_visibility == 'public' %}selected{% endif %}>
					公开
				</option>
				<option value="private" {% if score_visibility == 'private' %}selected{% endif %}>
					私有
				</option>
				<option value="hidden" {% if score_visibility == 'hidden' %}selected{% endif %}>
					隐藏
				</option>
				<option value="admins" {% if score_visibility == 'admins' %}selected{% endif %}>
					仅管理员
				</option>
			</select>
			<small class="form-text text-muted">
				该设置一般应与账户可见性相同，以避免冲突。
			</small>
		</div>

		<div class="form-group">
			<label>
				账号可见性<br>
				<small class="form-text text-muted">
					控制账户（用户和团队）是向所有人显示还是只向管理员显示
				</small>
			</label>
			<select class="form-control custom-select" name="account_visibility">
				<option value="public" {% if account_visibility == 'public' %}selected{% endif %}>
					公开
				</option>
				<option value="private" {% if account_visibility == 'private' %}selected{% endif %}>
					私有
				</option>
				<option value="admins" {% if account_visibility == 'admins' %}selected{% endif %}>
					仅管理员
				</option>
			</select>
			<small class="form-text text-muted">
				该设置一般应与分数可见性相同，以避免冲突。
			</small>
		</div>

		<div class="form-group">
			<label>
				是否可注册<br>
				<small class="form-text text-muted">
					控制是否为所有人启用或禁用注册
				</small>
			</label>
			<select class="form-control custom-select" name="registration_visibility">
				<option value="public" {% if registration_visibility == 'public' %}selected{% endif %}>
					公开
				</option>
				<option value="private" {% if registration_visibility == 'private' %}selected{% endif %}>
					私有
				</option>
				<option value="mlc" {% if registration_visibility == 'mlc' %}selected{% endif %}>
					仅允许 MajorLeagueCyber
				</option>
			</select>
		</div>

		<div class="form-group">
			<div class="form-check">
				<label>
					<input id="paused" name="paused" type="checkbox" {% if paused %}checked{% endif %}>
					暂停 CTF<br>
					<small>
						阻止用户提交答案，直到取消暂停。挑战仍可查看。
					</small>
				</label>
			</div>
		</div>

		<button type="submit" class="btn btn-md btn-primary float-right">Update</button>
	</form>
</div>